import VueRouter from "vue-router"
import index from "../../components/index/index.vue"
import classify from "../../components/index/classify.vue"
import Cookbook from "../../components/index/Cookbook.vue"
import HomeCooked from "../../components/index/HomeCooked.vue"
import restriction from "../../components/index/restriction.vue"
import PregnantDiet from "../../components/index/PregnantDiet.vue"
import FoodInformation from "../../components/index/FoodInformation.vue"

// index-->首页
// classify-->食材分类
// Cookbook-->菜谱大全
// HomeCooked-->家常菜谱
// restriction-->食物相克
// PregnantDiet-->孕妇食谱
// FoodInformation-->美食资讯

// 详情页：
import search from "../../components/details/search.vue"
import dishes from "../../components/details/dishes.vue"
import noodles from "../../components/details/noodles.vue"
import categories from "../../components/details/categories.vue"
import appdownloads from "../../components/details/appdownloads.vue"
import BraisedPork from "../../components/details/BraisedPork.vue"
import spicy from "../../components/details/spicy.vue"
import reading from "../../components/details/reading.vue"


export default new VueRouter({
    routes:[
        {
            path:"/index",
            component:index
        },
        {
            path:"/classify",
            component:classify
        },
        {
            path:"/Cookbook",
            component:Cookbook
        },
        {
            path:"/HomeCooked",
            component:HomeCooked
        },
        {
            path:"/restriction",
            component:restriction
        },
        {
            path:"/PregnantDiet",
            component:PregnantDiet
        },
        {
            path:"/FoodInformation",
            component:FoodInformation
        },
        {
            path:"/search",
            component:search
        },
        {
            path:"/dishes",
            component:dishes
        },
        {
            path:"/noodles",
            component:noodles
        },
        {
            path:"/categories",
            component:categories
        },
        {
            path:"/appdownloads",
            component:appdownloads
        },
        {
            path:"/BraisedPork",
            component:BraisedPork
        },
        {
            path:"/spicy",
            component:spicy
        },
        {
            path:"/reading",
            component:reading
        },
        {
            path:"/*",
            component:index
        }
    ]
})